//
//  CSConnectStatusController.m
//  CreateWithSuper
//
//  Created by chenjunbo on 2024/6/1.
//  Copyright © 2024 CS. All rights reserved.
//

#import "CSConnectStatusController.h"
#import "CSLimitedController.h"

@interface CSConnectStatusController ()

@property (weak, nonatomic) IBOutlet UIImageView *mainImgView;
@property (weak, nonatomic) IBOutlet UILabel *mainLabel;
@property (weak, nonatomic) IBOutlet UIView *sucView;

@end

@implementation CSConnectStatusController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    if (!self.isSuc){
        
        self.sucView.hidden = YES;
        self.mainLabel.text = @"Connection failure";
        self.mainImgView.image = [UIImage imageNamed:@"icon_fail"];
        
    }
    
}


- (IBAction)backClick:(UIButton *)sender {
    [self.navigationController popToRootViewControllerAnimated:YES];
}



- (IBAction)createClick:(UIButton *)sender {
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Create" bundle:nil];
    CSLimitedController *vc = [storyboard instantiateViewControllerWithIdentifier:@"CSLimitedController"];
    [self.navigationController pushViewController:vc animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
